package com.adam.springbucks;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启事务支持
@MapperScan("com.adam.springbucks.mapper")
@EnableCaching(proxyTargetClass = true)////开启支持缓存的注解 并基于类进行代理
@ServletComponentScan(basePackages= "com.adam.springbucks.config.BucksDruidSQLFilter")
@ImportResource(locations={"classpath:xml/spring-config-bean.xml"})
public class SpringbucksApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbucksApplication.class, args);
    }

}
